<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> </title>
<style>
 

</style>
</head>
<body>
	<script
		src="${pageContext.request.contextPath}/static/fw/plugin/d3/d3.min.js"
		charset="utf-8"></script>
	<script>
	function delayedHello(callback) {
		  setTimeout(function() {
		    console.log("Hello!");
		    callback(null);
		  }, 250);
		}
	var q = d3.queue();
	q.defer(delayedHello);
	q.defer(delayedHello);
	q.await(function(error) {
	  if (error) throw error;
	  console.log("Goodbye!");
	});
	function d(){
		var q = d3.queue();
	
		for (var i = 0; i < 1000; ++i) {
		  q.defer(delayedHello);
		}
	
		q.awaitAll(function(error) {
		  if (error) throw error;
		  console.log("Goodbye!");
		});
	}
	
	</script>
</body>
</html>